package com.seoultour.joel;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.context.ApplicationContext;
import org.springframework.context.support.ClassPathXmlApplicationContext;
import org.springframework.stereotype.Component;

@Component
public class Joel {

	@Autowired
	private JoelStatusListener joelStatusListener;

	public static void main(String []args) {
		ApplicationContext applicationContext = new ClassPathXmlApplicationContext("spring/*.xml");

		Joel p = applicationContext.getBean(Joel.class);
		p.start();
	}

	public void start() {
		joelStatusListener.run();
	}
}
